import java.text.DecimalFormat; 
public class Point extends Polygons{
	private int x;
	private int y;
	
	
	public double area()
	{
		return 0;
	}
	public double perimeter()
	{
		return 0;
	}
	public void setWeightCenter()
	{
		this.weightCenterX = x;
		this.weightCenterY = y;
		
	}
	public Point(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
	public void printInfo() {
		
		StringBuilder figureinfo = new StringBuilder();
		DecimalFormat myFormatter = new DecimalFormat(this.pattern);
		
		figureinfo.append("x:").append(myFormatter.format(x)).append(" ").append("y:").append(myFormatter.format(y));
		
		this.setWeightCenter();
		
		figureinfo.append(" ").append("perimeter:").append(myFormatter.format(this.perimeter())).append(" ").append("area:").
			append(myFormatter.format(this.area())).append(" ").append("Weight Center X:").append(myFormatter.format(this.weightCenterX)).
			append(" ").append("Weight center Y:").append(myFormatter.format(this.weightCenterY));
		
		String str = new String(figureinfo);
		System.out.println(str);
		
	}

}
